﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class ColoredSquare : INotifyPropertyChanged
    {
        private int _Id;
        public int Id
        {
            get { return _Id; }
            set
            {
                if (value == _Id)
                {
                    return;
                }
                _Id = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Id"));
            }
        }

        private string _Color;
        public string Color
        {
            get { return _Color; }
            set
            {
                if (value == _Color)
                {
                    return;
                }
                _Color = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Color"));
            }
        }

        private string _Content;
        public string Content
        {
            get { return _Content; }
            set
            {
                if (value == _Content)
                {
                    return;
                }
                _Content = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Content"));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
